package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 角色表 sys_role
 *
 * @author ruoyi
 */
@Data
@TableName("sys_role")
@ApiModel(value = "角色信息表")
public class SysRole extends CommonEntity {
    @ApiModelProperty(value = "角色ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "父菜单ID")
    private Long projectId;
    @ApiModelProperty(value = "角色名称")
    private String name;
    @ApiModelProperty(value = "角色状态（0正常 1停用")
    private Long status;
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private Long delFlag;
    @ApiModelProperty(value = "备注")
    private String remark;
}
